CC=gcc
FLAGS=-fPIC -g -O2 -I../../ -L../../
LDFLAGS=-g


all:
	$(CC) $(FLAGS) -c -o redfileio.o redfileio.cpp
	$(CC) $(LDFLAGS) -shared -o redfileio.so redfileio.o
	chmod a-x redfileio.so
	rm *.o

install:
	mv *.so ../../../modules/

clean:
	rm *~ *.o ../../../modules/redfileio.so
